package cn.hdu.community.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * <p>
 *
 * </p>
 *
 * @author zhangxin
 * @since 2022-04-01
 */
@Getter
@Setter
@TableName("user")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer userId;

    @TableField("user_email")
    private String userEmail;

    @TableField("user_password")
    private String userPassword;

    @TableField("user_name")
    private String userName;

    @TableField("user_avatar")
    private String userAvatar;

    @TableField("user_signature")
    private String userSignature;

    @TableField("user_gender")
    private String userGender;

    @TableField("user_birthday")
    private LocalDate userBirthday;

    @TableField("user_profession")
    private String userProfession;

    @TableField("user_registration_time")
    private LocalDate userRegistrationTime;

    @TableField("user_activity_time")
    private LocalDate userActivityTime;

}
